package com.spt.springbootzhsx.mapper;

import com.spt.springbootzhsx.entity.Movie;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

@Mapper
public interface MovieMapper {
    ArrayList<Movie> getAllMovie();
    Movie getMovieByAllMname(String mname);
    ArrayList<Movie> getMovieByMname(String mname);
    ArrayList<Movie> getMovieByMstate(String mstate);
    ArrayList<Movie> getMovieByMtype(String mstype);
    Movie getMovieByMid(Integer mid);
    ArrayList<Movie> getMovieByKeyAndMstate(@Param("key") String key,@Param("mstate") String mstate);
    int addMovie(Movie movie);
    int deleteMovie(Integer mid);
    int updateMovie(Movie movie);
}
